package com.lxw.api.cms;

import com.lxw.framework.domain.cms.CmsPage;
import com.lxw.framework.domain.cms.request.QueryPageRequest;
import com.lxw.framework.domain.cms.response.CmsPageResult;
import com.lxw.framework.model.response.QueryResponseResult;
import com.lxw.framework.model.response.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;

@Api("CmsPage增删改查，页面发布等功能")
public interface CmsPageControllerApi {

    @ApiOperation("根据分页条件获取cmsPage列表信息")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "page",value = "页码",paramType = "path",dataType = "Integer"),
            @ApiImplicitParam(name = "page",value = "页数",paramType = "path",dataType = "Integer")
    })
    public QueryResponseResult findCmsPagesBypage(Integer page,Integer size,QueryPageRequest queryPageRequest);

    @ApiOperation("添加cmsPage列表信息")
    public CmsPageResult addCmsPage(CmsPage cmsPage);

    @ApiOperation("根据Id获取cmsPage列表信息")
    public CmsPageResult findCmsPageById(String pageId);

    @ApiOperation("修改cmsPage列表信息")
    public CmsPageResult updateCmsPage(String pageId,CmsPage cmsPage);

    @ApiOperation("根据Id删除cmsPage列表信息")
    public ResponseResult delCmsPageById(String pageId);

    @ApiOperation("根据Id发布页面")
    public ResponseResult postPage(String pageId);

    @ApiOperation("保存或更新cmsPage列表信息")
    public CmsPageResult saveCmsPage(CmsPage cmsPage);

    @ApiOperation("一键发布页面")
    public ResponseResult postPageQuick(CmsPage cmsPage);
}
